
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>{$share['title']}</title>
	<meta name="format-detection" content="telephone=no, address=no">
	<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
	<meta name="apple-touch-fullscreen" content="yes"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<meta name="keywords" content="" />
	<meta name="description" content="{$share['title']}" />
	<link href="../addons/mon_weishare/css/bootstrap.min.css" rel="stylesheet">
	<link href="../addons/mon_weishare/css/font-awesome.min.css" rel="stylesheet">
	<link href="../addons/mon_weishare/css/animate.css" rel="stylesheet">
	<link href="../addons/mon_weishare/css/common.css" rel="stylesheet">
		{php echo register_jssdk(false);}
<script type="text/javascript">

	wx.ready(function () {
		sharedata = {
			title: "{$share[shareTitle]}",
			desc: "{$share[shareContent]}",
			link: '{$_W[siteroot]}app{php echo str_replace('./','/',$this->createMobileUrl('Auth',array('id'=>$share['id'],'uid'=>$shareUser['id'],'au'=>1)))}',
			imgUrl: "{$_W['attachurl']}{$share['shareIcon']}",
			success: function(){
				
			},
			cancel: function(){
				
			}
		};
		wx.onMenuShareAppMessage(sharedata);
		wx.onMenuShareTimeline(sharedata);
	});
	
</script>
	<script src="../addons/mon_weishare/js/require.js"></script>
	<script src="../addons/mon_weishare/js/app/config.js"></script>
	<script type="text/javascript" src="../addons/mon_weishare/js/lib/jquery-1.11.1.min.js"></script>
	

	<script type="text/javascript">
		window.sharedata = {
			'appId': '', // 服务号可以填写appId
			'imgUrl' : '', // 缩略图
			'link': '', // 内容链接
			'title': '', // 内容标题
			'desc': '' // 内容简介
		};
		window.onshared = ''; 
	</script>
	
</head>
<body>
<div class="container container-fill">
	
<style>
	body{background:url({$_W['attachurl']}{$share['image']});background-repeat:no-repeat;background-size:cover;}
	.panel{margin:.5em;padding-top:90%;border:none;background:rgba(0,0,0,0);text-align:center;}
	.panel a{color:#fff;line-height:30px;}
	.btn{border: 0; height: 40px; line-height: 40px; font-size: 18px;}
	.btn span{color: #FF0000; font-size:26px;}
	.btn.btn-info{background: #FFF; color: #333;}
	.btn.btn-primary{background: #F2CB0F; color: #333;}
	#mcover{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);display:none;z-index:20000;}
	#mcover img{position:fixed;right: 18px;top:5px;width:260px;height:180px;z-index:20001;}
	
		.cropyt {
		margin-top: 10px;
		font: 14px/1.5 Microsoft YaHei, Helvitica, Verdana, Arial, san-serif;
		
		text-align: center;
		width: 100%;
	}
</style>

<div class="panel panel-info">

	<form  id="form_help" method="post" action="{$_W['siteroot']}app{php echo str_replace('./','/',$this->createMobileUrl('help',array("sid"=>$share['id'],"uid"=>$shareUser['id']),true))}" >
	<input type="hidden" id="fid" name="fid" value="{$firdOpenId}" />
	<div class="panel-body">
		<a class="btn btn-info btn-block">已充值金额<span><b>{$shareUser['income']}</b></span>{$share['unit']}</a>
		{if  !$end }
		
		{if  $leftLimitCount<=0&&$limitType==1}
			<a href="javascript:void(0)" class="btn btn-primary btn-block">今天已为Ta助力完成!</a>	
		{/if}
		
		{if  $leftTotalCount<=0&&$limitType==0}
			<a href="javascript:void(0)" class="btn btn-primary btn-block">已为Ta助力完成!</a>	
		{/if}
		
		
		
		
		
		{if  $leftLimitCount>0&&$limitType==1}
			<a href="javascript:void(0)" id="btn_help" class="btn btn-primary btn-block">你还可以助Ta{$leftLimitCount}臂之力</a>	
		{/if}
		
		
		{if  $leftTotalCount>0&&$limitType==0}
			<a href="javascript:void(0)" id="btn_help" class="btn btn-primary btn-block">助Ta一臂之力</a>	
		{/if}
		
		
		{if empty ($dbRegistUser)}
			
			<a href="{$share['url']}" class="btn btn-primary btn-block">我也领取{$share['cardname']}</a>
		
		{/if}
		
		{if !empty($dbRegistUser)}
			<a href="{php echo $this->createMobileUrl('share',array("id"=>$sid,"openid"=>$firdOpenId))}" class="btn btn-primary btn-block">查看我的积分</a>
		{/if}
		
		
		{/if}
		
		{if $end }
			<a href="javascript:void(0)" class="btn btn-primary btn-block">活动已结束!</a>	
		{/if}
		<a href="{php echo $this->createMobileUrl('sort',array("id"=>$share['id'],"uid"=>$shareUser['id']))}"  class="btn btn-primary btn-block">积分排名</a>
		<p>{$share['tip']}，<a href="{php echo $this->createMobileUrl('rule',array("id"=>$share['id'],"uid"=>$shareUser['id']))}">点击查看活动规则>>></a></p>
	</div>
	</form>
	<span class="cropyt" style="text-align: center;">{$share['copyright']}</span>
</div>
<div id="mcover" onclick="$(this).hide()"><img src="../addons/mon_weishare/images/guide.png"></div>
<script>require(['bootstrap']);</script>

	
<script type="text/javascript">


$(document).ready(function(){
	
	
	
	$("#btn_help").click(function(){
		
		
		$("#form_help").submit();
	});
	
	
});

	//对分享时的数据处理
	function _removeHTMLTag(str) {
		str = str.replace(/<script[^>]*?>[\s\S]*?<\/script>/g,'');
		str = str.replace(/<style[^>]*?>[\s\S]*?<\/style>/g,'');
		str = str.replace(/<\/?[^>]*>/g,'');
		str = str.replace(/\s+/g,'');
		str = str.replace(/&nbsp;/ig,'');
		return str;
	}



</script>
</body>
</html>